from pydantic import BaseModel, Field
from fastapiApp.models.enums import OrderStatus

class BaseOrder(BaseModel):
    order_name: str = Field(..., description="订单名称")
    user_id: int = Field(..., description="用户ID")
    type: str = Field(..., description="订单类型")
    status: OrderStatus = Field(..., description="订单状态")
    car_index: int = Field(..., description="关联的AGV编号")
    order_station_from: int = Field(1, description="当前站ID")
    order_station_to: int = Field(1, description="目标站ID")
    priority: int = Field(..., description="订单优先级")

class OrderCreate(BaseOrder):
    pass

class OrderUpdate(BaseModel):
    id : int

